home *** CD-ROM | disk | FTP | other *** search
- /*
- * memory.c
- *
- * Copyright (c) 1987 by Bear River Associates, Inc.
- */
-
- /* Primary Interface Files */
- #include "Types.h"
-
- /* Other Interface files */
- #include "Memory.h"
-
- /* Application-specific Include files */
- #include "tifflib.h"
-
- OSErr AllocPtr(ptrPtr, size)
- Ptr *ptrPtr;
- Size size;
- {
- OSErr error;
-
- *ptrPtr = NewPtr(size);
- error = MemError();
- return(error);
- }
-
- OSErr AllocMemory(ptrHandle, size)
- Handle *ptrHandle;
- Size size;
- {
- OSErr error;
-
- *ptrHandle = NewHandle(size);
- error = MemError();
- return(error);
- }
-
- OSErr AllocHandleSize(h, newSize)
- Handle h;
- Size newSize;
- {
- OSErr error;
-
- SetHandleSize(h, newSize);
- error = MemError();
- return(error);
- }
-